package cannot.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TvExpandExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TvExpandExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andForeginkeyIsNull() {
            addCriterion("foreginkey is null");
            return (Criteria) this;
        }

        public Criteria andForeginkeyIsNotNull() {
            addCriterion("foreginkey is not null");
            return (Criteria) this;
        }

        public Criteria andForeginkeyEqualTo(Integer value) {
            addCriterion("foreginkey =", value, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyNotEqualTo(Integer value) {
            addCriterion("foreginkey <>", value, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyGreaterThan(Integer value) {
            addCriterion("foreginkey >", value, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyGreaterThanOrEqualTo(Integer value) {
            addCriterion("foreginkey >=", value, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyLessThan(Integer value) {
            addCriterion("foreginkey <", value, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyLessThanOrEqualTo(Integer value) {
            addCriterion("foreginkey <=", value, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyIn(List<Integer> values) {
            addCriterion("foreginkey in", values, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyNotIn(List<Integer> values) {
            addCriterion("foreginkey not in", values, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyBetween(Integer value1, Integer value2) {
            addCriterion("foreginkey between", value1, value2, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andForeginkeyNotBetween(Integer value1, Integer value2) {
            addCriterion("foreginkey not between", value1, value2, "foreginkey");
            return (Criteria) this;
        }

        public Criteria andIsvipIsNull() {
            addCriterion("isvip is null");
            return (Criteria) this;
        }

        public Criteria andIsvipIsNotNull() {
            addCriterion("isvip is not null");
            return (Criteria) this;
        }

        public Criteria andIsvipEqualTo(String value) {
            addCriterion("isvip =", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipNotEqualTo(String value) {
            addCriterion("isvip <>", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipGreaterThan(String value) {
            addCriterion("isvip >", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipGreaterThanOrEqualTo(String value) {
            addCriterion("isvip >=", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipLessThan(String value) {
            addCriterion("isvip <", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipLessThanOrEqualTo(String value) {
            addCriterion("isvip <=", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipLike(String value) {
            addCriterion("isvip like", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipNotLike(String value) {
            addCriterion("isvip not like", value, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipIn(List<String> values) {
            addCriterion("isvip in", values, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipNotIn(List<String> values) {
            addCriterion("isvip not in", values, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipBetween(String value1, String value2) {
            addCriterion("isvip between", value1, value2, "isvip");
            return (Criteria) this;
        }

        public Criteria andIsvipNotBetween(String value1, String value2) {
            addCriterion("isvip not between", value1, value2, "isvip");
            return (Criteria) this;
        }

        public Criteria andImg_urlIsNull() {
            addCriterion("img_url is null");
            return (Criteria) this;
        }

        public Criteria andImg_urlIsNotNull() {
            addCriterion("img_url is not null");
            return (Criteria) this;
        }

        public Criteria andImg_urlEqualTo(String value) {
            addCriterion("img_url =", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlNotEqualTo(String value) {
            addCriterion("img_url <>", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlGreaterThan(String value) {
            addCriterion("img_url >", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlGreaterThanOrEqualTo(String value) {
            addCriterion("img_url >=", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlLessThan(String value) {
            addCriterion("img_url <", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlLessThanOrEqualTo(String value) {
            addCriterion("img_url <=", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlLike(String value) {
            addCriterion("img_url like", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlNotLike(String value) {
            addCriterion("img_url not like", value, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlIn(List<String> values) {
            addCriterion("img_url in", values, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlNotIn(List<String> values) {
            addCriterion("img_url not in", values, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlBetween(String value1, String value2) {
            addCriterion("img_url between", value1, value2, "img_url");
            return (Criteria) this;
        }

        public Criteria andImg_urlNotBetween(String value1, String value2) {
            addCriterion("img_url not between", value1, value2, "img_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlIsNull() {
            addCriterion("video_url is null");
            return (Criteria) this;
        }

        public Criteria andVideo_urlIsNotNull() {
            addCriterion("video_url is not null");
            return (Criteria) this;
        }

        public Criteria andVideo_urlEqualTo(String value) {
            addCriterion("video_url =", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlNotEqualTo(String value) {
            addCriterion("video_url <>", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlGreaterThan(String value) {
            addCriterion("video_url >", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlGreaterThanOrEqualTo(String value) {
            addCriterion("video_url >=", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlLessThan(String value) {
            addCriterion("video_url <", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlLessThanOrEqualTo(String value) {
            addCriterion("video_url <=", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlLike(String value) {
            addCriterion("video_url like", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlNotLike(String value) {
            addCriterion("video_url not like", value, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlIn(List<String> values) {
            addCriterion("video_url in", values, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlNotIn(List<String> values) {
            addCriterion("video_url not in", values, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlBetween(String value1, String value2) {
            addCriterion("video_url between", value1, value2, "video_url");
            return (Criteria) this;
        }

        public Criteria andVideo_urlNotBetween(String value1, String value2) {
            addCriterion("video_url not between", value1, value2, "video_url");
            return (Criteria) this;
        }

        public Criteria andShowdateIsNull() {
            addCriterion("showdate is null");
            return (Criteria) this;
        }

        public Criteria andShowdateIsNotNull() {
            addCriterion("showdate is not null");
            return (Criteria) this;
        }

        public Criteria andShowdateEqualTo(Date value) {
            addCriterion("showdate =", value, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateNotEqualTo(Date value) {
            addCriterion("showdate <>", value, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateGreaterThan(Date value) {
            addCriterion("showdate >", value, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateGreaterThanOrEqualTo(Date value) {
            addCriterion("showdate >=", value, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateLessThan(Date value) {
            addCriterion("showdate <", value, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateLessThanOrEqualTo(Date value) {
            addCriterion("showdate <=", value, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateIn(List<Date> values) {
            addCriterion("showdate in", values, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateNotIn(List<Date> values) {
            addCriterion("showdate not in", values, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateBetween(Date value1, Date value2) {
            addCriterion("showdate between", value1, value2, "showdate");
            return (Criteria) this;
        }

        public Criteria andShowdateNotBetween(Date value1, Date value2) {
            addCriterion("showdate not between", value1, value2, "showdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createdate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createdate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createdate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createdate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createdate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createdate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createdate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createdate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createdate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createdate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createdate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createdate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andPlay_timesIsNull() {
            addCriterion("play_times is null");
            return (Criteria) this;
        }

        public Criteria andPlay_timesIsNotNull() {
            addCriterion("play_times is not null");
            return (Criteria) this;
        }

        public Criteria andPlay_timesEqualTo(Integer value) {
            addCriterion("play_times =", value, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesNotEqualTo(Integer value) {
            addCriterion("play_times <>", value, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesGreaterThan(Integer value) {
            addCriterion("play_times >", value, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesGreaterThanOrEqualTo(Integer value) {
            addCriterion("play_times >=", value, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesLessThan(Integer value) {
            addCriterion("play_times <", value, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesLessThanOrEqualTo(Integer value) {
            addCriterion("play_times <=", value, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesIn(List<Integer> values) {
            addCriterion("play_times in", values, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesNotIn(List<Integer> values) {
            addCriterion("play_times not in", values, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesBetween(Integer value1, Integer value2) {
            addCriterion("play_times between", value1, value2, "play_times");
            return (Criteria) this;
        }

        public Criteria andPlay_timesNotBetween(Integer value1, Integer value2) {
            addCriterion("play_times not between", value1, value2, "play_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesIsNull() {
            addCriterion("praise_times is null");
            return (Criteria) this;
        }

        public Criteria andPraise_timesIsNotNull() {
            addCriterion("praise_times is not null");
            return (Criteria) this;
        }

        public Criteria andPraise_timesEqualTo(Integer value) {
            addCriterion("praise_times =", value, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesNotEqualTo(Integer value) {
            addCriterion("praise_times <>", value, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesGreaterThan(Integer value) {
            addCriterion("praise_times >", value, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesGreaterThanOrEqualTo(Integer value) {
            addCriterion("praise_times >=", value, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesLessThan(Integer value) {
            addCriterion("praise_times <", value, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesLessThanOrEqualTo(Integer value) {
            addCriterion("praise_times <=", value, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesIn(List<Integer> values) {
            addCriterion("praise_times in", values, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesNotIn(List<Integer> values) {
            addCriterion("praise_times not in", values, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesBetween(Integer value1, Integer value2) {
            addCriterion("praise_times between", value1, value2, "praise_times");
            return (Criteria) this;
        }

        public Criteria andPraise_timesNotBetween(Integer value1, Integer value2) {
            addCriterion("praise_times not between", value1, value2, "praise_times");
            return (Criteria) this;
        }

        public Criteria andOrderIsNull() {
            addCriterion("order is null");
            return (Criteria) this;
        }

        public Criteria andOrderIsNotNull() {
            addCriterion("order is not null");
            return (Criteria) this;
        }

        public Criteria andOrderEqualTo(Integer value) {
            addCriterion("order =", value, "order");
            return (Criteria) this;
        }

        public Criteria andOrderNotEqualTo(Integer value) {
            addCriterion("order <>", value, "order");
            return (Criteria) this;
        }

        public Criteria andOrderGreaterThan(Integer value) {
            addCriterion("order >", value, "order");
            return (Criteria) this;
        }

        public Criteria andOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("order >=", value, "order");
            return (Criteria) this;
        }

        public Criteria andOrderLessThan(Integer value) {
            addCriterion("order <", value, "order");
            return (Criteria) this;
        }

        public Criteria andOrderLessThanOrEqualTo(Integer value) {
            addCriterion("order <=", value, "order");
            return (Criteria) this;
        }

        public Criteria andOrderIn(List<Integer> values) {
            addCriterion("order in", values, "order");
            return (Criteria) this;
        }

        public Criteria andOrderNotIn(List<Integer> values) {
            addCriterion("order not in", values, "order");
            return (Criteria) this;
        }

        public Criteria andOrderBetween(Integer value1, Integer value2) {
            addCriterion("order between", value1, value2, "order");
            return (Criteria) this;
        }

        public Criteria andOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("order not between", value1, value2, "order");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}